#pragma once
#include "introducing.h"
#include <initializer_list>


struct MyList
{
	ListNode* pHead;

	MyList() :pHead(nullptr) {};
	MyList(std::initializer_list<int> il);
	MyList(MyList&);
	MyList(MyList&&) = delete;

	~MyList();
	
	MyList& operator=(MyList&) = delete;
	MyList& operator=(MyList&&) = delete;

	void addToHead(int val);
	void print();	
};

